#include "MoverPch.h"
#include "DMover.h"
#include "IMoverConnector.h"
DMover::DMover(DWORD dwID)
	:m_dwID(dwID)
{
}

DMover::~DMover()
{
}

bool DMover::Init(mover::IMoverConnector* pConnector)
{

	bool		bResult		= false;
	m_pConnector = pConnector;
	//Log(m_pConnector != NULL);

	m_pSpeed = m_pConnector->GetSpeed(m_dwID);
	//Log(m_pMover != NULL);

	//memset(&MoverPos, 0, sizeof(MoverPos));

	bResult = true;
Exit0:
	return bResult;
}

void DMover::UnInit()
{

}

void DMover::Tick()
{

}

bool DMover::MoveUp()
{
	bool		bResult		= false;

	m_stPos.Y -= 1;
	bResult = true;

Exit0:
	return bResult;
}

bool DMover::MoveDown()
{
	bool		bResult		= false;

	m_stPos.Y += 1;
	bResult = true;

Exit0:
	return bResult;
}

bool DMover::MoveLeft()
{
	bool		bResult		= false;

	m_stPos.X -= 1;
	bResult = true;

Exit0:
	return bResult;
}

bool DMover::MoveRight()
{
	bool		bResult		= false;

	m_stPos.X += 1;
	bResult = true;

Exit0:
	return bResult;
}

bool DMover::MoveOneStep()
{
	bool       bResult = false;

	//stPos.X += m_pSpeed->x;
	//stPos.Y += m_pSpeed->y;


Exit0:
	return bResult;
}
